﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThuVien;
using System.Data;

namespace TranTekBE.KPI_NhanSu
{
    public partial class Menu_KPI : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //
            User objUser = new User();
            objUser = HttpContext.Current.Session["UserInfo"] as User;
            if (objUser.MemberKPI == true)
            {
                Div_danh_gia.Visible = false;
                Div_Thuong_Phat_User.Visible = false;
                Div_schedule_user.Visible = false;
                Div_xem_yeu_cau_chuyen_ca.Visible = false;
                Div_Add_Test.Visible = false;
                Div_phan_quyen.Visible = false;
                Div_Add_Event.Visible = false;
                Div_SeeKPI.Visible = false;
            }
            else
                if (objUser.ManagerKPI == true)
                {
                    Div_phan_quyen.Visible = false;
                    Div_Add_Event.Visible = false;
                    Div_SeeKPI.Visible = false;
                }
        }
    }
}